Fix PyTorch matmul device placement#3638
Conversation
✅MegaLinter analysis: Success
Notices📣 MegaLinter 9.5.0 is out! Discover the new features and security recommendations in the release announcement. (Skip this info by defining See detailed reports in MegaLinter artifacts Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining
|
|
Closing this as superseded. Current |
Pull request was closed

Summary
matmulreceives mixed CPU/accelerator operands.pyrecest._backend.pytorch.matmuland the active public PyTorch backend facade synchronized.torch.matmul.Bug fixed
matmulconverted operands independently and then delegated totorch.matmul. A CPU tensor or array-like left operand paired with a CUDA/meta right operand could therefore run on or return a CPU tensor instead of preserving the existing accelerator operand.Validation
py_compile.